#include "surfaceManager.h"
#include "surfaceMgrPanel.h"

surfaceManager::surfaceManager()
{
}

QString surfaceManager::createPluginMenu()
{
	return tr("opengl/surface");
}

void surfaceManager::createPluginMenuResult(bool result, QString menuId, QString error)
{
	// TODO
}

QWidget* surfaceManager::createPluginWidget()
{
	if (m_widget == nullptr)
	{
		m_widget = new surfaceMgrPanel();
	}
	return m_widget;
}

void surfaceManager::destroyPluginWidget()
{
	if (m_widget)
	{
		delete m_widget;
		m_widget = nullptr;
	}
}
